add a css style test for font: smaller
authorMatthias Clasen <mclasen@redhat.com>
Thu, 24 Mar 2016 12:24:45 +0000 (08:24 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 25 Mar 2016 02:58:43 +0000 (22:58 -0400)
testsuite/css/style/Makefile.am
testsuite/css/style/font.css [new file with mode: 0644]
testsuite/css/style/font.nodes [new file with mode: 0644]
testsuite/css/style/font.ui [new file with mode: 0644]

index 86cdc1a34826c35f6dc957ad5c0ab8b312e8a8f3..bfdb22bad78b73dcbd07c78316af0f7b98eb6a63 100644 (file)
@@ -32,6 +32,7 @@ test_data = \
        adjacent-states.ui      adjacent-states.css     adjacent-states.nodes   \
        colornames.ui           colornames.css          colornames.nodes        \
         currentcolor.ui        currentcolor.css        currentcolor.nodes      \
+       font.ui                 font.css                font.nodes              \
         gradient.ui                    gradient.css            gradient.nodes          \
         inherit.ui             inherit.css             inherit.nodes           \
        label.ui                label.css               label.nodes             \
diff --git a/testsuite/css/style/font.css b/testsuite/css/style/font.css
new file mode 100644 (file)
index 0000000..86b2ba0
--- /dev/null
@@ -0,0 +1,7 @@
+box {
+  font: "Comic Sans 10";
+}
+
+label {
+  font: smaller;
+}
diff --git a/testsuite/css/style/font.nodes b/testsuite/css/style/font.nodes
new file mode 100644 (file)
index 0000000..02044b4
--- /dev/null
@@ -0,0 +1,12 @@
+[window.background:dir(ltr)]
+  decoration:dir(ltr)
+  box.horizontal:dir(ltr)
+    font-size: 10px; /* font.css:2:23 */
+    font-family: "\"Comic Sans 10\""; /* font.css:2:23 */
+    font-style: normal; /* font.css:2:23 */
+    font-variant: normal; /* font.css:2:23 */
+    font-weight: normal; /* font.css:2:23 */
+    font-stretch: normal; /* font.css:2:23 */
+
+    label:dir(ltr)
+      font-size: 8.3333333333333339px; /* font.css:6:20 */
diff --git a/testsuite/css/style/font.ui b/testsuite/css/style/font.ui
new file mode 100644 (file)
index 0000000..f1b397c
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <child>
+          <object class="GtkLabel">
+            <property name="visible">True</property>
+            <property name="label" translatable="yes">Hello World!</property>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>